package com.bd.bbd.bean;
//用户实体

import java.util.Date;

//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
public class User {

    //@ApiModelProperty(value = "自增id")
    //@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //@ApiModelProperty(value = "用户编号")
    private String uid;

    //@ApiModelProperty(value = "角色编号")
    private Integer roleId;

   // @ApiModelProperty(value = "用户名")
    private String username;

    //@ApiModelProperty(value = "密码")
    private String password;

    //@ApiModelProperty(value = "头像")
    private String avatar;

    //@ApiModelProperty(value = "登录时间")
    private Date loginDate;

    //@ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    public User(){}

    public User(String uid, Integer roleId, String username, String password, String avatar, Date loginDate, Date gmtCreate) {
        this.uid = uid;
        this.roleId = roleId;
        this.username = username;
        this.password = password;
        this.avatar = avatar;
        this.loginDate = loginDate;
        this.gmtCreate = gmtCreate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", uid='" + uid + '\'' +
                ", roleId=" + roleId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", avatar='" + avatar + '\'' +
                ", loginDate=" + loginDate +
                ", gmtCreate=" + gmtCreate +
                '}';
    }
}
